package com.ermao.service;

import com.ermao.pojo.User;

import javax.servlet.http.HttpServletRequest;

/**
 * @author Ermao
 * Date: 2021/9/3 13:09
 */
public interface UserService {
	Boolean isExistUserByAccountNumber(Integer accountNumber);

	Boolean registerANewUser(Integer accountNumber, String password, String email);

	Boolean login(Integer accountNumber, String password, HttpServletRequest request);

	User selectAUserByAccountNumber(Integer accountNumber);

	User selectAUserByUserId(Integer userId);

	Boolean updateUserNickname(User user, String nickname);

	Boolean updateUserPassword(User user, String oldPassword, String newPassword);
}
